#

| Chapter 2 UNIX Commands |

## tee

    tee [options] [files]

Duplicate the standard input; send one copy to standard output and another copy to `files`.

### Options

-a

  Append output to `files`.

-i

  Ignore all interrupts.

### Examples

Display a who listing on the screen, and store it in two files:

>     who | tee userlist ttylist

Display misspelled words, and add them to existing typos:

>     spell ch02 | tee -a typos

Reference: tbl |  | Reference: telnet